package cn.edu.gdu.quizpractice.service;

import cn.edu.gdu.quizpractice.entity.Bank;
import cn.edu.gdu.quizpractice.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Author: Aubery
 * @Date: 2025-02-25-22:18
 * @Description:
 */
public interface ICategoryService extends IService<Category> {

    Category findByName(String name);

    List<Category> findAll();

    boolean insertCategory(Category category);

    boolean deleteByName(String name);

    boolean addCateory(String categoryName);

    int updateCategory(Category category);

    List<String> findBanksByCategoryName(String categoryName);
}
